#!/bin/sh
case "$1" in
	start)
		babysit 60 buttonmon | resetmonitor.sh 2>&1 | logos resetmonitor &
		;;
	stop)
		pkillwait -x resetmonitor
		;;
	restart)
		$0 stop; $0 start
		;;
	*)
		echo "Usage: $0 {start|stop|restart}"
		exit 1
		;;
esac
